Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 5 - Menu Manager Reference / Menu Manager Functions
Manipulating and Accessing Menu Item Characteristics /


GetMenuItemRefCon2

NEW WITH THE APPEARANCE MANAGER

Gets application-specific information for a menu item.

pascal OSErr GetMenuItemRefCon2 (
                     MenuHandle inMenu,
                     SInt16 inItem,
                     SInt32* outRefCon);
inMenu
The handle to the menu structure of the menu item for which you wish to retrieve information.
inItem
An integer representing the item number of the menu item for which you wish to retrieve information.
outRefCon
On output, a pointer to an integer representing a reference constant.
function result
A result code; see "Result Codes".
DISCUSSION
If you have assigned any data to a given menu item using SetMenuItemRefCon2 function, you can read it using the GetMenuItemRefCon function.

SEE ALSO
"Appearance Manager Gestalt Selector Constants".

SetMenuItemRefCon2.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998